<table class="table">
  <thead>
    <tr>
      <th class="first"><%= sort_link @search, :user_name, "#{t 'helpers.label.userinfo.name'}" %></th>
      <th><%= sort_link @search, :user_surname, "#{t 'helpers.label.userinfo.surname'}" %></th>
      <th><%= sort_link @search, :user_email, "#{t 'helpers.label.userinfo.email'}" %></th>
      <th><%= sort_link @search, :order_company_name, "#{t 'helpers.label.userinfo.company_name'}" %></th>
      <th class="last" style="width: 20px;"></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th></th>
      <th colspan="2"><%= paginate order_user_infos %></th>
    </tr>
  </tfoot>
  <tbody>
    <% unless order_user_infos.blank? %>
      <%= render :partial => "order_user_info", :collection => order_user_infos %>
    <% else %>
    <tr>
      <th colspan="10">Nebyli nalezeni žádní zákazníci.</th>
    </tr>
    <% end %>
  </tbody>
</table>